using System.Collections.Generic;
using System.Web.Mvc;
using Nop.Web.Framework;
using Nop.Web.Framework.Mvc;

namespace Spotshub.Plugin.Payments.GlobalPayments.Models
{
    public class PaymentInfoModel : BaseNopModel
    {
        public PaymentInfoModel()
        {
            Warnings = new List<string>();
            CreditCards = new List<CreditCard>();
        }

        public bool IsOnePageCheckout { get; set; }

        public List<string> Warnings { get; set; }
        public bool DebugEnabled { get; set; }
        
        public string UID { get; set; }
        public int CustomerId { get; set; }
        public int StoreId { get; set; }

        public string SecureFormUrl { get; set; }

        public bool IsAddingCard { get; set; }
		public string ReturnRouteName { get; set; }
        public int CreditCardId { get; set; }
        public IList<CreditCard> CreditCards { get; set; }

        public bool ShowCreditCards { get; set; }
        public bool ShowForm { get; set; }

        public class CreditCard
        {
            public int Id { get; set; }
            public string Number { get; set; }
            public string Name { get; set; }
            public string Type { get; set; }
            public int ExpiryYear { get; set; }
            public int ExpiryMonth { get; set; }
            public bool IsDefault { get; set; }
        }
    }


}